export let page2 = {
    path: '/page2',
    name: 'page2',
    component: () => import('@/views/index/index.vue'),
    meta: {
        title: 'route.page2.meta.title',
        auth:['admin']
    },
    children: [
        {
            path: '/page2-1',
            name: 'page2-1',
            component: () => import('@/views/page2/page2-1.vue'),
            meta: {
                title: 'route.page2-1.meta.title',
                auth:['admin'],
                componentName:'page2_1'
            },
        },
        {
            path: '/page2-2',
            name: 'page2-2',
            component: () => import('@/views/page2/page2-2.vue'),
            meta: {
                title: 'route.page2-2.meta.title',
                auth:['admin'],
                componentName:'page2_2'
            },
        },
        {
            path: '/page2-3',
            name: 'page2-3',
            meta: {
                keepAlive:true,
                title: 'route.page2-3.meta.title',
                auth:['admin'],
                componentName:'page2_3'
            },
            // 三级
            children:[
                {
                    path: '/page2-3-1',
                    name: 'page2-3-1',
                    component: () => import('@/views/page2/page2-3/page2-3-1.vue'),
                    meta: {
                        keepAlive:true,
                        title: 'route.page2-3-1.meta.title',
                        auth:['admin'],
                        componentName:'page2_3_1'
                    },
                },
                {
                    path: '/page2-3-2',
                    name: 'page2-3-2',
                    component: () => import('@/views/page2/page2-3/page2-3-2.vue'),
                    meta: {
                        keepAlive:false,
                        title: 'route.page2-3-2.meta.title',
                        auth:['admin'],
                        componentName:'page2_3_2'
                    },
                },
            ]
        },
        {
            path: '/page2-4',
            name: 'page2-4',
            meta: {
                keepAlive:true,
                title: 'route.page2-4.meta.title',
                auth:['admin'],
                componentName:'page2_4'
            },
            // 三级
            children:[
                {
                    path: '/page2-4-1',
                    name: 'page2-4-1',
                    component: () => import('@/views/page2/page2-4/page2-4-1.vue'),
                    meta: {
                        keepAlive:true,
                        title: 'route.page2-4-1.meta.title',
                        auth:['admin'],
                        componentName:'page2_4_1'
                    },
                }
            ]
        }
    ]
}

export default {
    page2 
}